import ajax from "./request.js";

export function member(openid) {
	return ajax('member', {
		openid
	})
}


//member.mycommunity
export function member_mycommunity(data) {
	return ajax('member.mycommunity', data)
}

//设置默认地址 member.address.setdefault
export function member_address_setdefault(data) {
	return ajax('member.address.setdefault', data)
}
//删除地址 member.address.delete
export function member_address_delete(data) {
	return ajax('member.address.delete', data)
}
//地址列表 member.address
export function member_address(data) {
	return ajax('member.address', data)
}
//修改或添加地址 member.address.submit
export function member_address_submit(data) {
	return ajax('member.address.submit', data)
}
//获取修改地址  member.address.post
export function member_address_post(data) {
	return ajax('member.address.post', data)
}

//我的订单 order.get_list
export function order_get_list(data) {
	return ajax('order.get_list', data)
}

//取消订单 order.op.cancel
export function order_op_cancel(data) {
	// console.log(data);
	// debugger
	return ajax('order.op.cancel', data)
}

//确认收获 order.op.finish
export function order_op_finish(data) {
	return ajax('order.op.finish', data)
}

//commission_qrcode
export function commission_qrcode(openid) {
	return ajax('commission.qrcode', {
		openid
	})
}